<?php
namespace Admin\Controller;
use Think\Controller;
class PublicController extends Controller{
	public function __construct(){
		parent::__construct();
		session_start();
		 if ($_SESSION['admin_id'] == null || $_SESSION['admin_id'] == "") {
        	$this->error("请先登录",'/Admin/Login/index');
        }
        $this->admin = M('admin')->where('id = '.$_SESSION['admin_id'])->find();
	}
}

?>